ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Windows functions that can be handled by the end user
  • Use conditions
  • Use example
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Undoes the last action performed by the end user when modifying the interface ("Allow end users to modify the UI" option enabled). This function is equivalent to an "Undo" (Ctrl + Z) performed by the user.
This function is mainly used when creating an editor through programming (see "Remarks").
Example
// [Cancel] button
WIN_Form.EdUndo()
Syntax
<Window>.EdUndo()
<Window>: Window name
Name of the window or internal window to be used. This window must be in edit mode (<Window>.EdActive).
Remarks

Use conditions

  • <Window>.EdUndo has no effect if there is no action to cancel.
  • If the last action is a custom action run by <Window>.EdDo, the procedure defined by WinEdDeclareUndo is run.
  • The canceled action can be restored:

Use example

<Window>.EdDo is used to create custom actions (control creation for example) that support the undo/redo feature.
Let's take a simple example: creating a graphic object editor.
A button is used to create a shape. The user must have the ability to undo the shape creation. The following operations are performed:
The end user can undo this action (Ctrl + Z or call to <Window>.EdUndo) and eventually redo it (Ctrl + Y or call to <Window>.EdRedo).
Component: wd290obj.dll
Minimum version required
  • Version 27
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/20/2023

Send a report | Local help